b237c37d00e28a6b7d4f36bdb4ee6d3badb717ad,device/iothub-java-client/src/main/java/com/microsoft/azure/iothub/transport/amqps/AmqpsIotHubConnectionBaseHandler.java,AmqpsIotHubConnectionBaseHandler,shutdown,#,401
Before Change
public void shutdown(){
this.linkFlow = false;
this.sender.close();
this.receiver.close();
this.session.close();
this.connection.close();
}
/**
After Change
public void shutdown(){
this.linkFlow = false;
if (this.sender != null) {
this.sender.close();
}
if (this.receiver != null) {
this.receiver.close();
}
if (this.session != null) {
this.session.close();
}
if (this.connection != null) {
this.connection.close();
}
}